From: Eli Zaretskii Date: Sat, 28 Mar 2009 12:26:04 +0000 (+0000) Subject: (shell-quote-wildcard-pattern): Doc fix. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~1054 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=caae48a63cbc474e5204cc610bfd4b2b006b27a5;p=emacs.git (shell-quote-wildcard-pattern): Doc fix. --- diff --git a/lisp/files.el b/lisp/files.el index 589d267407a..2ab2e88161f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -5254,12 +5254,14 @@ and `list-directory-verbose-switches'." "Quote characters special to the shell in PATTERN, leave wildcards alone. PATTERN is assumed to represent a file-name wildcard suitable for the -underlying filesystem. For Unix and GNU/Linux, the characters from the -set [ \\t\\n;<>&|()'\"#$] are quoted with a backslash; for DOS/Windows, all +underlying filesystem. For Unix and GNU/Linux, each character from the +set [ \\t\\n;<>&|()'\"#$] is quoted with a backslash; for DOS/Windows, all the parts of the pattern which don't include wildcard characters are quoted with double quotes. -Existing quote characters in PATTERN are left alone, so you can pass -PATTERN that already quotes some of the special characters." + +This function leaves alone existing quote characters (\\ on Unix and \" +on Windows), so PATTERN can use them to quote wildcard characters that +need to be passed verbatim to shell commands." (save-match-data (cond ((memq system-type '(ms-dos windows-nt cygwin))